package com.idanchuang.user.count.service.api.request.command.read;


import com.idanchuang.user.count.service.api.request.command.BaseUpdateCommand;
import com.idanchuang.user.count.service.api.request.command.UserRelated;

import javax.validation.constraints.NotNull;

/**
 * 添加对应消息记录并且设置为 unread
 * @author Richard_yyf
 * @version 1.0 2021/5/21
 */
public class AddUserMsgCommand extends BaseUpdateCommand implements UserRelated {


    /**
     * 用户code
     */
    @NotNull
    private Integer userCode;

    /**
     * 计数场景
     */
    @NotNull
    private String scene;

    /**
     * 消息唯一id
     */
    @NotNull
    private String msgId;

    public AddUserMsgCommand() {
    }

    @Override
    public Integer getUserCode() {
        return userCode;
    }

    public void setUserCode(Integer userCode) {
        this.userCode = userCode;
    }

    public String getScene() {
        return scene;
    }

    public void setScene(String scene) {
        this.scene = scene;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    @Override
    public String toString() {
        return "UserUnreadCommand{" +
                "scene='" + scene + '\'' +
                ", msgId=" + msgId +
                "} " + super.toString();
    }
}
